home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_pondripple.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
3KB
|
98 lines
/*
* $VER: EOT_PondRipple.ifx.pre 2.6 (24.04.96)
* Copyright © 1992-1996 Nova Design, Inc.
* Written by Ola Eric Olsson
*/
lib = 'rexxmathlib.library'
IF EXISTS('libs:rexxmathlib.library') THEN
DO
IF ~SHOW('L',lib) THEN CALL ADDLIB(lib,0,-30,0)
IF ~SHOW('L',lib) THEN
DO
message = "Can't load "||libs
requestnotify message
CALL abort
END
END
ELSE
DO
message = "Can't find "||libs
requestnotify message
CALL abort
END
/******************************************************************/
/** This script sends a ripple from the center of the **/
/** image out past the edge. If the user draws a region prior **/
/** to running the script, the center of the region becomes the **/
/** center of the wave effect. **/
/******************************************************************/
OPTIONS RESULTS
base = 'autofx_pondripple_'
xcen = GETCLIP(base||'xcen')
ycen = GETCLIP(base||'ycen')
startsize = GETCLIP(base||'startsize')
endsize = GETCLIP(base||'endsize')
amp = GETCLIP(base||'amp')
startrad = GETCLIP(base||'startrad')
damp = GETCLIP(base||'damp')
IF xcen = "" THEN xcen = -1
IF ycen = "" THEN ycen = -1
IF startsize = "" THEN startsize = 3
IF endsize = "" THEN endsize = 3
IF amp = "" THEN amp = 100
IF startrad = "" THEN startrad = 2
IF damp = "" THEN damp = 50
/******************************************************************/
/** File requester with gadgets. **/
/******************************************************************/
title = '"EOT_PondRipple"'
text1 = '"Center of Ripple X:"'
text2 = '"Y:"'
text3 = '"(-1,-1 selects the exact center of the image.)"'
text4 = '"Starting Wave Length:"'
text5 = '"Ending Wave Length:"'
text6 = '"Starting Radius:"'
text7 = '"Wave Amplitude:"'
text8 = '"Dampening Factor:"'
gad.1 = 'INTEGER LE=160 TE=10 WD=50 HT=14 LB='text1' IN='xcen
gad.2 = 'INTEGER LE=260 TE=10 WD=50 HT=14 LB='text2' IN='ycen
gad.3 = 'TEXT LE=160 TE=30 WD=1 HT=1 LB='text3' JU=2'
gad.4 = 'SLIDER LE=160 TE=55 WD=150 HT=14 LB='text4' IN=3 LO=1 HI=50 LV=%-3ld'
gad.5 = 'SLIDER LE=160 TE=75 WD=150 HT=14 LB='text5' IN=10 LO=1 HI=50 LV=%-3ld'
gad.6 = 'SLIDER LE=160 TE=95 WD=150 HT=14 LB='text6' IN=2 LO=1 HI=10 LV=%-3ld'
gad.7 = 'SLIDER LE=160 TE=115 WD=150 HT=14 LB='text7' IN=100 LO=20 HI=500 LV=%-3ld'
gad.8 = 'SLIDER LE=160 TE=135 WD=150 HT=14 LB='text8' IN=50 LO=10 HI=80 LV=%-3ld'
gad.9 = 'END'
newcomplexrequest title gad 380 160
IF rc ~= 0 THEN EXIT rc
xcen = RESULT.1
ycen = RESULT.2
startsize = RESULT.4
endsize = RESULT.5
startrad = RESULT.6
amp = RESULT.7
damp = RESULT.8
CALL SETCLIP(base||'xcen',xcen)
CALL SETCLIP(base||'ycen',ycen)
CALL SETCLIP(base||'startsize',startsize)
CALL SETCLIP(base||'endsize',endsize)
CALL SETCLIP(base||'amp',amp)
CALL SETCLIP(base||'startrad',startrad)
CALL SETCLIP(base||'damp',damp)
EXIT